﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace System.ComponentModel.Composition
{
    /// <summary>
    /// MEF mimic attribute class to use compatible structur for CLR creation.
    /// </summary>
    [AttributeUsage(AttributeTargets.Field, AllowMultiple = false)]
    public class ImportManyAttribute : Attribute
    {
        /// <summary>
        /// Imitation of the Contract Type of the MEF
        /// </summary>
        public Type ContractType { get; private set; }

        public ImportManyAttribute(Type contractType)
        {
            this.ContractType = contractType;
        }
    }
}
